package cn.itacm.pattern.creational.factory;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Factory factoryA = new ProductAFactory();
		Factory factoryB = new ProductBFactory();
		
		System.out.println(factoryA.getProduct().getName());
		System.out.println(factoryB.getProduct().getName());
	}

}
